ReleaseExtension
TheReleaseExtension
method releases the specified extension object.
void ReleaseExtension (in ODExtension extension);
extension
- A reference to an extension.
DISCUSSION
OpenDoc or an extension object client calls this method to release an extension object that was previously acquired using theAcquireExtension
method. If the extension was not previously acquired by the caller, theReleaseExtension
method raises an exception. After this method executes successfully, the specified extension object is no longer guaranteed to be valid.The
ODObject
class has no inherent extensions of its own and therefore always raises an exception.OVERRIDING
Your subclass ofODPart
can override this method if your part supports extensions. If your part does not support the specified extension, your override method must call its inheritedReleaseExtension
method at the end of your implementation.EXCEPTIONS
kODErrUnsupportedExtension
- This object does not recognize the extension object and therefore cannot release it.
SEE ALSO
TheODObject::AcquireExtension
method (page 440).
TheODObject::HasExtension
method (page 441).
TheODPart
class (page 459).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help